Automattic\WooCommerce\Internal\Admin\Settings\PaymentProviders\WooPayments\WooPaymentsService D

Total Complexity 222
Dependencies 12
Dependents 3
Total lines 2,339
Lines of code 1,230
Logical lines of code 479
Comment lines 809
Methods 62
Properties 4

Methods 62

Method Rating Maintainability Complexity Lines of code
get_onboarding_step_status()
C
39 28 65
get_onboarding_steps()
A
32 8 142
sanitize_onboarding_step_error()
A
46 12 40
onboarding_test_account_init()
A
36 8 99
standardize_onboarding_step_details()
A
45 10 44
get_onboarding_kyc_session()
A
37 7 87
is_valid_onboarding_step_data()
A
52 11 27
finish_onboarding_kyc_session()
A
38 6 84
disable_test_account()
A
42 7 57
reset_onboarding()
A
42 7 54
onboarding_step_save()
A
48 8 36
get_onboarding_payment_methods_state()
S
50 7 29
get_onboarding_kyc_fields()
S
57 6 15
check_if_onboarding_action_is_acceptable()
S
53 5 24
get_nox_profile_onboarding_step()
S
59 5 16
check_if_onboarding_step_action_is_acceptable()
S
52 4 27
onboarding_preload()
S
53 4 24
mark_onboarding_step_started()
S
55 4 20
mark_onboarding_step_completed()
S
55 4 20
record_event()
S
57 4 18
save_nox_profile_onboarding_step()
S
60 4 14
mark_onboarding_step_failed()
S
56 3 18
get_onboarding_step_required_steps()
S
65 3 11
get_overview_page_url()
S
58 2 18
clean_onboarding_step_progress()
S
59 2 16
check_onboarding_step_requirements()
S
65 3 9
get_onboarding_details()
S
57 1 17
get_nox_profile_onboarding_step_data_entry()
S
68 2 7
get_wpcom_connection_state()
S
64 2 10
get_nox_profile_onboarding_step_entry()
S
68 2 7
get_nox_profile()
S
66 2 9
standardize_onboarding_steps_details()
S
68 2 7
get_country()
S
68 2 7
has_valid_account()
S
68 2 7
get_onboarding_kyc_fallback_url()
S
65 2 9
has_live_account()
S
66 2 8
clear_onboarding_step_failed()
S
64 2 9
has_test_account()
S
66 2 8
has_working_account()
S
66 2 8
clear_onboarding_step_blocked()
S
64 2 9
has_working_wpcom_connection()
S
79 2 3
is_valid_onboarding_step_id()
S
65 1 12
has_account()
S
80 1 3
is_extension_active()
S
79 1 3
get_wpcom_connection_authorization()
S
79 1 3
get_payment_gateway()
S
79 1 3
init()
S
69 1 6
save_nox_profile_onboarding_step_data_entry()
S
71 1 5
save_nox_profile_onboarding_step_entry()
S
72 1 5
clear_onboarding_lock()
S
79 1 3
set_onboarding_lock()
S
79 1 3
get_onboarding_recommended_payment_methods()
S
79 1 3
onboarding_step_check()
S
69 1 7
get_onboarding_step_error()
S
78 1 3
mark_onboarding_step_blocked()
S
66 1 7
is_onboarding_step_blocked()
S
73 1 4
is_onboarding_step_failed()
S
73 1 4
was_onboarding_step_marked_completed()
S
73 1 4
is_onboarding_step_completed()
S
78 1 3
was_onboarding_step_marked_started()
S
73 1 4
is_onboarding_step_started()
S
78 1 3
is_onboarding_locked()
S
78 1 3